var app = angular.module('qzchannelApp', []);


app.controller('qzchannelController', function($scope, $http) {
	$scope.load=function(){
		$http.get(timestamp("qz/channel/get/" + getQueryString("id"))).success( function(response) {
			$scope.menu = response.data;
//			console.log($scope.namelist);
			$http.get('qz/business/getAll?status=2').success(function(response){
				$scope.businessList=response.data;
//				console.log($scope.businessList);
	        });
	   	});
	}
	$scope.load();
	$scope.refreshData=function(){
		$scope.load();
	}
   $scope.menuCancle=function(){
	   redirectUrl("manage/channel/","list.jsp");
   }
});